package com.mlink.ai.chat.ui.activity

import android.content.Context
import android.content.Intent
import com.mlink.ai.chat.assistant.robot.R
import com.mlink.ai.chat.assistant.robot.databinding.ActivityRecentListBinding
import com.mlink.ai.chat.ui.fragment.RecentFragment

class RecentListActivity : BaseActivity<ActivityRecentListBinding>() {

    companion object{
        fun startAction(context: Context){
            context.startActivity(Intent(context,RecentListActivity::class.java))
        }
    }

    override fun getViewBinding(): ActivityRecentListBinding {
        return ActivityRecentListBinding.inflate(layoutInflater)
    }

    override fun initViews() {
        val recentFragment = RecentFragment()
        val transaction = supportFragmentManager.beginTransaction()
        transaction.add(R.id.layout_container, recentFragment)
        transaction.commit()
        binding.titleTv.text = "最近"
        binding.backIv.setOnClickListener { finish() }
    }
}